<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/style.css">
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<fmt:setBundle basename="Messages" />
<title><fmt:message key="Display.ManageFacility" /></title>
<link rel="stylesheet" href="jquery.treeview.css" />
<link rel="stylesheet" href="screen.css" />

<script src="lib/jquery.js" type="text/javascript"></script>
<script src="lib/jquery.cookie.js" type="text/javascript"></script>
<script src="jquery.treeview.js" type="text/javascript"></script>

<script type="text/javascript" src="demo.js"></script>
<script>
	<script src="http://code.jquery.com/jquery-latest.js">
</script>
<script type="text/javascript"
	src="http://jzaefferer.github.com/jquery-validation/jquery.validate.js"></script>

</head>
<body>
	<img src="img/logo_ISS.jpg" class="logo" />
	<div class="header">
		<div style="float: left; margin: 11px auto 0 auto">
			<h1>
				<fmt:message key="Display.InstituteofSystemScience" />
			</h1>
		</div>
		<div style="float: right; margin: 11px auto 0 auto">
			<h1>
				<fmt:message key="Display.FacilitiesBookingSystem" />
			</h1>
		</div>
	</div>
	<div class="site_content">
		<div class="sidebar_container">
			<div class="sidebar">
				<%@include file="adminSideMenu.jsp" %>
			</div>
		</div>

		<div class="content">
			<h1>
				<fmt:message key="Display.ManageFacility" />
			</h1>
			<table class="borderAll">
				<tr>
					<th><fmt:message key="Display.FacilityName" /></th>
					<th><fmt:message key="Display.FacilityType" /></th>
					<th><fmt:message key="Display.TotalRooms" /></th>
					<th><fmt:message key="Display.SeatingCapacity" /></th>
					<th>  </th>
				</tr>
				<c:forEach var="facilitys" items="${facility}" varStatus="status">
					<tr class="${status.index%2==0?'even':'odd'}">
						<td class="nowrap">${facilitys.getFacilityName()}</td>
						<td class="nowrap">${facilitys.getFacType().getFacilityType()}</td>
						<td class="nowrap">${facilitys.getFacType().getTotalRooms()}</td>
						<td class="nowrap">${facilitys.getSeatingCapacity()}</td>
						<td class="nowrap"><c:url var="updurl" scope="page"
								value="EditFacility.jsp">
								<c:param name="name" value="${facilitys.getFacilityName()}" />
								<c:param name="facType"
									value="${facilitys.getFacType().getFacilityType()}" />
								<c:param name="totalRooms"
									value="${facilitys.getFacType().getTotalRooms()}" />
								<c:param name="seatCapacity"
									value="${facilitys.getSeatingCapacity()}" />
								<c:param name="description"
									value="${facilitys.getDescription() }" />
							</c:url> <a href="${updurl}"><fmt:message key="Display.EditFacility" /></a>
						</td>
					</tr>
				</c:forEach>
			</table>
		</div>

	</div>

	<div class="footer" style="align: center">Copyright@ Team3
		Erudites</div>

</body>
</html>